﻿using System;
using Bdcs.Application.Mappers.Dto;
using Bdcs.Core.Entity;
using Mapster;

namespace Bdcs.Application.Mappers
{
    public class CarInfoMapper : IRegister
    {
        public void Register(TypeAdapterConfig config)
        {
            config.ForType<CICarInfoMod, CarInfoDto>()
                .IgnoreNullValues(true); // 忽略空值映射
            config.ForType<CarInfoDto, CICarInfoMod>()
                .IgnoreNullValues(true); // 忽略空值映射
        }
    }
}
